package com.fa4j.common.base.exception;

/**
 * 错误类型接口
 */
public interface RequestErrorType extends ErrorType {

    /**
     * 构建异常
     */
    default RequestException build(Object... args) {
        return build(null, null, args);
    }


    /**
     * 构建异常
     */
    default RequestException build(String message, Throwable cause, Object... args) {
        return new RequestException(this, message, args, cause);
    }

}
